import {
    FETCH_LAYOUT_DATA,
    FETCH_RENDER_NEW_POST_DATA,
    FETCH_RENDER_POST_DETAIL_DATA,
    FETCH_RENDER_REPLY_POST_DATA
} from "../action-types";

const initialState = {
    layoutPayload: {},
};
export const layoutRenderReducer = (state = initialState, action) => {
    const tempState = {
        layoutPayload:{}
    };
    switch (action.type) {
        case FETCH_LAYOUT_DATA:
            tempState.layoutPayload = action.payload;
            return tempState;
        default:
            return state
    }
};

export const pageRenderReducer = (state = initialState, action) => {
    const tempState = {};
    tempState[action.type] = action.payload;
    return tempState;
};